#ifndef PDF_TO_WORD_DIALOG_H
#define PDF_TO_WORD_DIALOG_H

#include <QDialog>
#include <QVBoxLayout>
#include <vector>
#include <memory>
#include <QProcess>

namespace Ui {
class PDF_To_Word_Dialog;
}
//class SelectPdfForm;
class PDF_To_Word_Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit PDF_To_Word_Dialog(QWidget *parent = 0);
    ~PDF_To_Word_Dialog();

signals:
    void sig_changeState(int id,QString state);

private slots:
    void on_closeBtn_clicked();
    void on_minBtn_clicked();
    void on_pushButton_add_file_clicked();

    void on_pushButton_export_clicked();


    void readProcessOutput();
    void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
    void processErrorOccurred(QProcess::ProcessError error);

private:
    bool CreateWordFile(const QString& pdfPath,const QString& outPath);
private:
    Ui::PDF_To_Word_Dialog *ui;

    QVBoxLayout* m_pVBoxLayout{nullptr};
    QProcess *pythonExeProcess_{nullptr};
   // std::vector<SelectPdfForm*> m_vecSelectPdfFormList;
    int id_currentRunning_{-1}; //正在转换的id

};

#endif // PDF_TO_WORD_DIALOG_H
